<style>
.top {
}
</style>

<template>
  <div class="container">
    <h1>文章详情页</h1>

    <div class="">标题：{{articleDetailItem.title}}</div>
    <div class="">内容：{{articleDetailItem.description}}</div>
    <!-- <div class="">作者：{{articleDetailItem.title}}</div> -->
    <div class="">时间：{{articleDetailItem.createtime}}</div>
  </div>
</template>


<script>
import Axios from 'axios';

export default {
  created() {

    var that = this;
    var url = this.$userMsg + "demo/articleDetail";

    Axios.get(url, {
      params: {
        id: this.$route.query.id
      }
    }).then(function(result) {
      if (result.data.code) {
        
        that.articleDetailItem = result.data.data;
      } else {
        alert("数据不存在");
      }
    });
  },
  data() {
    return {
      articleDetailItem:null
    };
  }
};
</script>